package com.example.his.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 患者信息表
 * </p>
 *
 * @author why
 * @since 2021-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("his_patient")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 患者信息表ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 创建时间
     */
    @TableField("create_datetime")
    private String createDatetime;

    /**
     * 患者家庭住址
     */
    @TableField("address")
    private String address;

    /**
     * 出生日期
     */
    @TableField("birthday")
    private String birthday;

    /**
     * 卡号
     */
    @TableField("card_id")
    private String cardId;

    /**
     * 身份证
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 民族
     */
    @TableField("nationality")
    private String nationality;

    /**
     * 性别
     */
    @TableField("sex")
    private String sex;

    /**
     * 电话
     */
    @TableField("telphone")
    private String telphone;

    /**
     * 职业
     */
    @TableField("career")
    private String career;

    /**
     * 家族史
     */
    @TableField("family_history")
    private String familyHistory;

    /**
     * 婚姻状况
     */
    @TableField("marital_status")
    private String maritalStatus;

    /**
     * 既往史
     */
    @TableField("past_history")
    private String pastHistory;

    /**
     * 个人史
     */
    @TableField("personal_history")
    private String personalHistory;


}
